package com.qmth.gkwb.data.entity;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.qmth.gkwb.data.constant.OrderStatus;
import com.qmth.pay.OrderFormData;

@Document(collection="orders")
public class Order {

	@Id
	private String id;
	private String orderId;
	private String examId;
	private double money;
	private Date payDate;
	private Date updatedTime;
	private String merId;
	private OrderStatus status;
	
	
	public Order(String orderId, String examId, double money,
			Date updatedTime) {
		super();
		this.orderId = orderId;
		this.examId = examId;
		this.money = money;
		this.updatedTime = updatedTime;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getExamId() {
		return examId;
	}
	public void setExamId(String examId) {
		this.examId = examId;
	}
	
	public String getMerId() {
		return merId;
	}
	public void setMerId(String merId) {
		this.merId = merId;
	}

	
	
	public OrderStatus getStatus() {
		return status;
	}
	public void setStatus(OrderStatus status) {
		this.status = status;
	}
	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}
	
	
}
